<template>
  <div class="all">
    <!-- 头部 -->
    <layheade>
      <span slot="head-title" class="head-title">新增发布</span>
      <div slot="submit" class="submit">
        <span>预览</span>
        <span>提交</span>
      </div>
    </layheade>
    <!-- 店铺主题 -->
    <div class="main-title">
      <h3>请输入主标题</h3>
      <textarea placeholder="请输入主标题~~"></textarea>
      <van-uploader v-model="fileList" multiple :max-count="1" />
    </div>
    <!-- 分类 -->
    <div class="classify">
      <p>所属专区</p>
      <div class="classify-con">
        <van-button color="#F0F0F0FF" round v-for="item in 10" :key="item">租赁</van-button>
      </div>
    </div>
    <!-- 正文内容 -->
    <div class="body-con">
      <h3>请输入正文内容</h3>
      <textarea placeholder="请输入正文内容~~" class="body-text"></textarea>
    </div>
  </div>
</template>

<script>
import layheade from "../components/layheade";
export default {
  name: "addIssue",
  components: {
    layheade
  },
  data() {
    return {
      fileList: []
    };
  }
};
</script>

<style lang="less" scoped>
@color : #C30D1EFF;
.all {
  width: 100%;
  height: 100%;
  background-color: #f8f8f8ff;
}
.submit {
  margin-left: 175px;
  span {
    &:nth-child(1) {
      margin-right: 22px;
    }
  }
}
.main-title {
  width: 100%;
  height: 220px;
  padding: 18px 15px 12px;
  background-color: #fff;
}
textarea {
  margin-top: 15px;
  height: 70px;
  width: 100%;
  font-size: 15px;
  resize: none;
  border: none;
  border-bottom: 1px solid #eaeaeaff;
}
h3 {
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  &::before {
    content: "";
    border: 3px solid @color;
    margin-right: 10px;
    height: 21px;
  }
}
.van-uploader__upload {
  margin: 0;
}
.classify {
  margin-top: 12px;
  width: 100%;
  height: 162px;
  background-color: #fff;
  padding: 10px 15px;
  p {
    font-weight: 500;
    font-size: 16px;
    line-height: 21px;
  }
  .classify-con {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;

    .van-button {
      height: 31px;
      line-height: 31px;
      margin-right: 22px;
      margin-bottom: 10px;
      .van-button__text {
        color: #787878ff;
      }
    }
  }
}
.body-con {
  padding: 18px 21px;
  width: 100%;
  height: 220px;
  background-color: #fff;
  margin-top: 12px;
  .body-text {
    margin-top: 15px;
    height: 150px;
    width: 100%;
    font-size: 15px;
    resize: none;
    border: none;
  }
}
</style>